<template>
  <div class="pizza">
    <svg
      t="1637841650473"
      class="icon"
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="2435"
      :height="radius"
      @click="eat()"
    >
      <path
        d="M0.024 753.808l8.156 19.688c45.78 110.496 131.84 196.554 242.37 242.336l19.688 8.156 191.058-461.27L0.024 753.808z"
        fill="#EAAD7A"
        p-id="2436"
      ></path>
      <path
        d="M56.272 776.684c40.062 84.184 106.904 150.996 191.088 191.086l135.122-326.21-326.21 135.124z"
        fill="#F4BE8E"
        p-id="2437"
      ></path>
      <path
        d="M739.146 53.918c-217.604-90.122-467.098 13.218-557.22 230.808-45.062 108.808-41.75 225.556 0 326.4l394.006-163.184-163.2 393.99c217.604 90.124 467.068-13.218 557.19-230.804 90.122-217.594-13.188-467.056-230.776-557.21z"
        fill="#F4BE8E"
        p-id="2438"
      ></path>
      <path
        d="M989.64 276.57c-45.78-110.498-131.84-196.56-242.338-242.338C692.524 11.544 634.93 0.012 576.12 0.012c-87.544 0-172.636 25.468-246.072 73.592C254.83 122.948 196.8 193.134 162.238 276.57c-45.81 110.498-45.81 232.212 0 342.712l8.124 19.714 366.148-151.652-151.652 366.116 19.686 8.156c54.812 22.718 112.374 34.218 171.23 34.218 87.53 0 172.59-25.468 246.026-73.594 75.248-49.34 133.278-119.496 167.84-202.96 45.782-110.498 45.782-232.214 0-342.71z m-39.406 326.398c-31.28 75.496-83.778 138.964-151.808 183.59-66.498 43.59-143.496 66.622-222.65 66.622-46.138 0-91.42-7.844-134.98-23.312l174.572-421.364-421.378 174.56c-33.592-94.562-31.032-196.778 7.624-290.182 31.312-75.498 83.81-138.966 151.84-183.588C419.92 65.73 496.918 42.7 576.12 42.7c53.186 0 105.28 10.406 154.872 30.936 99.966 41.406 177.808 119.28 219.244 219.246 41.404 99.996 41.404 210.118-0.002 310.086z"
        fill="#EAAD7A"
        p-id="2439"
      ></path>
      <path
        d="M965.266 309.756l-16.312-39.406-333.586 138.152 138.184-333.586-39.434-16.31-138.186 333.584-138.2-333.584-39.374 16.31 138.154 333.618-333.588-138.184-16.31 39.406 373.008 154.496 154.496 373.022 39.434-16.344-138.184-333.586 333.586 138.188 16.312-39.408L631.68 447.94z"
        fill="#EAAD7A"
        p-id="2440"
      ></path>
      <path
        d="M959.86 362.63c0 11.75-9.562 21.312-21.312 21.312-11.81 0-21.374-9.562-21.374-21.312 0-11.782 9.562-21.344 21.374-21.344 11.748 0 21.312 9.562 21.312 21.344z"
        fill="#434A54"
        p-id="2441"
      ></path>
      <path
        d="M746.552 447.94a21.3 21.3 0 0 1-21.31 21.312 21.3 21.3 0 0 1-21.312-21.312c0-11.782 9.532-21.344 21.312-21.344 11.78 0 21.31 9.564 21.31 21.344z"
        fill="#8CC153"
        p-id="2442"
      ></path>
      <path
        d="M938.516 554.562c0 11.782-9.532 21.344-21.342 21.344-11.75 0-21.312-9.562-21.312-21.344s9.562-21.312 21.312-21.312c11.81 0 21.342 9.532 21.342 21.312z"
        fill="#434A54"
        p-id="2443"
      ></path>
      <path
        d="M895.862 661.214c0 11.782-9.56 21.312-21.31 21.312-11.812 0-21.344-9.532-21.344-21.312s9.532-21.344 21.344-21.344c11.748 0.002 21.31 9.564 21.31 21.344zM831.864 746.528c0 11.782-9.532 21.344-21.312 21.344s-21.312-9.562-21.312-21.344 9.532-21.344 21.312-21.344 21.312 9.562 21.312 21.344z"
        fill="#8CC153"
        p-id="2444"
      ></path>
      <path
        d="M746.552 554.562c0 11.782-9.532 21.344-21.31 21.344-11.782 0-21.312-9.562-21.312-21.344s9.532-21.312 21.312-21.312c11.78 0 21.31 9.532 21.31 21.312z"
        fill="#434A54"
        p-id="2445"
      ></path>
      <path
        d="M595.744 597.218c0 11.782-9.562 21.344-21.344 21.344-11.78 0-21.342-9.562-21.342-21.344s9.562-21.312 21.342-21.312c11.782 0 21.344 9.532 21.344 21.312zM682.586 810.524c0 11.782-9.532 21.312-21.344 21.312-11.75 0-21.312-9.532-21.312-21.312 0-11.778 9.562-21.34 21.312-21.34a21.332 21.332 0 0 1 21.344 21.34z"
        fill="#8CC153"
        p-id="2446"
      ></path>
      <path
        d="M554.622 810.524c0 11.782-9.562 21.312-21.36 21.312-11.782 0-21.344-9.532-21.344-21.312 0-11.778 9.562-21.34 21.344-21.34 11.796 0 21.36 9.562 21.36 21.34z"
        fill="#434A54"
        p-id="2447"
      ></path>
      <path
        d="M362.64 682.528c0 11.782-9.532 21.344-21.344 21.344-11.75 0-21.312-9.562-21.312-21.344 0-11.75 9.562-21.312 21.312-21.312 11.814-0.002 21.344 9.562 21.344 21.312z"
        fill="#8CC153"
        p-id="2448"
      ></path>
      <path
        d="M277.33 895.836c0 11.782-9.532 21.312-21.344 21.312-11.75 0-21.312-9.532-21.312-21.312s9.562-21.344 21.312-21.344c11.812 0 21.344 9.562 21.344 21.344z"
        fill="#434A54"
        p-id="2449"
      ></path>
      <path
        d="M149.364 810.524c0 11.782-9.562 21.312-21.344 21.312-11.78 0-21.342-9.532-21.342-21.312 0-11.778 9.562-21.34 21.342-21.34 11.782 0 21.344 9.562 21.344 21.34zM917.174 255.976a21.3 21.3 0 0 1-21.312 21.312c-11.748 0-21.31-9.532-21.31-21.312s9.562-21.344 21.31-21.344c11.78 0 21.312 9.562 21.312 21.344z"
        fill="#8CC153"
        p-id="2450"
      ></path>
      <path
        d="M725.242 362.63c0 11.75-9.562 21.312-21.312 21.312-11.812 0-21.344-9.562-21.344-21.312 0-11.782 9.532-21.344 21.344-21.344 11.75 0 21.312 9.562 21.312 21.344zM789.238 149.322c0 11.782-9.562 21.344-21.344 21.344-11.78 0-21.342-9.562-21.342-21.344 0-11.78 9.562-21.31 21.342-21.31 11.782-0.002 21.344 9.53 21.344 21.31zM533.262 64.012c0 11.78-9.532 21.342-21.344 21.342-11.75 0-21.312-9.562-21.312-21.342 0-11.782 9.562-21.312 21.312-21.312 11.812 0 21.344 9.53 21.344 21.312z"
        fill="#434A54"
        p-id="2451"
      ></path>
      <path
        d="M618.618 277.288c0 11.782-9.562 21.342-21.342 21.342-11.782 0-21.344-9.562-21.344-21.342s9.562-21.312 21.344-21.312c11.778 0 21.342 9.53 21.342 21.312zM469.294 362.63c0 11.75-9.562 21.312-21.344 21.312-11.78 0-21.342-9.562-21.342-21.312 0-11.782 9.562-21.344 21.342-21.344 11.782 0 21.344 9.562 21.344 21.344z"
        fill="#8CC153"
        p-id="2452"
      ></path>
      <path
        d="M426.608 469.252c0 11.78-9.532 21.342-21.312 21.342-11.78 0-21.312-9.562-21.312-21.342a21.3 21.3 0 0 1 21.312-21.312 21.3 21.3 0 0 1 21.312 21.312z"
        fill="#434A54"
        p-id="2453"
      ></path>
      <path
        d="M234.674 362.63c0 11.75-9.562 21.312-21.312 21.312-11.812 0-21.374-9.562-21.374-21.312 0-11.782 9.562-21.344 21.374-21.344 11.75 0 21.312 9.562 21.312 21.344z"
        fill="#8CC153"
        p-id="2454"
      ></path>
      <path
        d="M213.362 490.594c0 11.782-9.562 21.312-21.374 21.312-11.75 0-21.312-9.532-21.312-21.312s9.562-21.342 21.312-21.342c11.812 0 21.374 9.562 21.374 21.342zM426.608 149.322c0 11.782-9.532 21.344-21.312 21.344-11.78 0-21.312-9.562-21.312-21.344 0-11.78 9.532-21.31 21.312-21.31a21.296 21.296 0 0 1 21.312 21.31z"
        fill="#434A54"
        p-id="2455"
      ></path>
      <path
        d="M661.242 85.354c0 11.782-9.562 21.312-21.312 21.312-11.782 0-21.312-9.532-21.312-21.312s9.532-21.342 21.312-21.342c11.75 0 21.312 9.562 21.312 21.342zM298.672 213.32c0 11.782-9.562 21.312-21.342 21.312-11.782 0-21.344-9.53-21.344-21.312 0-11.78 9.562-21.342 21.344-21.342 11.78 0 21.342 9.562 21.342 21.342z"
        fill="#8CC153"
        p-id="2456"
      ></path>
      <path
        d="M639.93 170.666c0 35.344-28.656 63.966-63.998 63.966-35.326 0-64.014-28.624-64.014-63.966s28.688-63.998 64.014-63.998c35.342-0.002 63.998 28.654 63.998 63.998zM639.93 725.184c0 35.344-28.656 64-63.998 64-35.326 0-64.014-28.656-64.014-64 0-35.312 28.688-63.968 64.014-63.968 35.342-0.002 63.998 28.656 63.998 63.968zM425.108 206.634c25 24.966 25 65.498 0 90.466-25 25-65.498 25-90.498 0-25-24.968-25-65.5 0-90.466 25-25 65.498-25 90.498 0zM817.238 598.75c25 25 25 65.496 0 90.496-25 24.968-65.498 24.968-90.498 0-24.998-25-24.998-65.496 0-90.496 25-25 65.498-25 90.498 0zM298.672 383.942c35.312 0 63.968 28.656 63.968 64 0 35.31-28.656 63.966-63.968 63.966-35.374 0-63.998-28.656-63.998-63.966 0-35.346 28.624-64 63.998-64zM853.208 383.942c35.342 0 63.966 28.656 63.966 64 0 35.31-28.624 63.966-63.966 63.966-35.344 0-63.968-28.656-63.968-63.966-0.002-35.346 28.624-64 63.968-64zM186.208 747.34c24.968-25 65.498-25 90.498 0 24.968 24.968 24.968 65.496 0 90.464-25 25-65.53 25-90.498 0.032-24.968-25-24.968-65.528 0-90.496zM726.74 206.634c25-25 65.498-25 90.498 0 25 24.966 25 65.498 0 90.466-25 25-65.498 25-90.498 0-24.966-24.968-24.966-65.5 0-90.466z"
        fill="#ED5564"
        p-id="2457"
      ></path>
    </svg>
    <input type="number" v-model="amount" />
  </div>
</template>


<script setup>
import { defineProps, defineEmits, ref } from "vue";
const props = defineProps({
  radius: Number,
});
const emit = defineEmits(["eat"]);
const amount = ref(0);

function eat() {
  emit("eat", amount.value || 0);
}
</script>

<style scoped>
.pizza {
  display: flex;
  flex-direction: column;
}
</style>



